3d30154dbbeb4224a74e932f65ed0e35f48f0e6b,plugins/org.eclipse.xtext.xbase.ui/src/org/eclipse/xtext/xbase/ui/contentassist/ReplacingAppendable.java,ReplacingAppendable,commitChanges,#,160

Before Change



	public void commitChanges() throws BadLocationException {
		document.replace(whitespaceHelper.getTotalOffset(), whitespaceHelper.getTotalLength(), toString());
		insertNewImports();
	}
	
	public int commitChanges(int offset, int length) throws BadLocationException {

After Change


	public int commitChanges() throws BadLocationException {
		ReplaceRegion change = getChange();
		getDocument().replace(change.getOffset(), change.getLength(), change.getText());
		return insertNewImports();
	}
	
//	public int commitChanges(int offset, int length) throws BadLocationException {